package cn.bbs.ba.path;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

//import org.apache.log4j.Logger;

public class BasePath {
	private static Properties pro;
	
	public static void init() {
		InputStream fis = BasePath.class.getResourceAsStream("/appliction.Properties");   
        try {
        	pro = new Properties(); 
			pro.load(fis);
	        fis.close(); 
		} catch (IOException e) {
			System.out.println("取路径出错:"+e.toString());
		}   
	}
	public static String getPath(String proPec) {
		BasePath.init();
		return pro.getProperty(proPec);
	}
}
